import { FitEnum } from 'sharp'
export interface ResizeImageSize {
  suffix: string // 生成文件的后缀
  width?: number
  height?: number
  fit?: keyof FitEnum
}
export interface ResizeImageCommandParams {
  dest?: string // 存储地址
  filepath: string // 生成路径
  filename: string // 图像名字
  sizes: Array<ResizeImageSize>
}


export class ResizeImageCommand {
  constructor(public readonly params: ResizeImageCommandParams) { }
}